import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const questManage: AppRouteModule = {
  path: '/questManage',
  name: 'QuestManage',
  component: LAYOUT,
  redirect: '/questManage/DirectedTask',
  meta: {
    orderNo: 6000,
    icon: 'ion:grid-outline',
    title: '任务管理',
  },
  children: [
    {
      path: 'TaskList',
      name: 'TaskList',
      component: () => import('@/views/demo/questManage/TaskList/index.vue'),
      meta: {
        title: '任务列表',
      },
    },
    {
      path: 'DirectedTask',
      name: 'DirectedTask',
      component: () => import('@/views/demo/questManage/DirectedTask/index.vue'),
      meta: {
        title: '定向采集任务',
      },
    },
    {
      path: 'account_detail/:id',
      name: 'AccountDetail',
      meta: {
        hideMenu: true,
        title: 'routes.demo.system.account_detail',
        ignoreKeepAlive: true,
        showMenu: false,
        currentActiveMenu: '/questManage/TaskList',
      },
      component: () => import('@/views/demo/questManage/TaskList/AccountDetail.vue'),
    },
  ],
};

export default questManage;
